package jp.ne.hatena.d.digitalsoul.warikan.cassandra

import org.apache.cassandra.thrift._

object CassandraRange {
	
	def sliceRangeAll:SlicePredicate = {
		val sliceRange = new SliceRange
		sliceRange.setStart(Array[Byte]())
		sliceRange.setFinish(Array[Byte]())
		
		val slicePredicate:SlicePredicate = new SlicePredicate
		slicePredicate.setSlice_range(sliceRange)
		
		slicePredicate
	}
	
	def keyRangeAll:KeyRange = {
		val partyKeyRange:KeyRange = new KeyRange
		partyKeyRange.setStart_key("")
		partyKeyRange.setEnd_key("")
		partyKeyRange
	}	

}